<?

session_start();

require("../../classCol.php");
require("../models/fetchers.php");

$COracle = new oracleDb;
$COracle->init($_SESSION["ORCL"], 
               $_SESSION["OPASS"],
               $_SESSION["SID"],
               _NO_COMMENT);

$srcDbRate = "MST_CURRENCY_RATE";
   
if($COracle->connect()){

  fetchRate($COracle,
            $_POST["srcSymbol"],
            $srcDbRate,
            $theRate);
            
  echo  $theRate;
}else{
  
  return "****";
}

?>